package bussinessService.impl;

import java.sql.SQLException;
import java.util.List;

import domain.vo.queryObject;

import module.EmployeesGroup;
import bussinessService.employeesGroupBussinessService;

/**
 * 
* @ClassName: EmployeesGroupBussinessServiceImpl
* @Description: 员工组业务层实现
* @author chenchao
* @date 2013-10-31 上午02:58:11
*
 */
public class EmployeesGroupBussinessServiceImpl implements employeesGroupBussinessService{

	/* (non-Javadoc)
	 * @see bussinessService.basicbussinessService#deleteT(java.lang.Object)
	 */
	public void deleteT(EmployeesGroup t) throws SQLException {
		// TODO Auto-generated method stub
		
	}

	/* (non-Javadoc)
	 * @see bussinessService.basicbussinessService#getAll()
	 */
	public List<EmployeesGroup> getAll() throws SQLException {
		// TODO Auto-generated method stub
		return employeesGroupSerivce.getAll();
	}

	/* (non-Javadoc)
	 * @see bussinessService.basicbussinessService#getById(java.lang.String)
	 */
	public EmployeesGroup getById(String id) throws SQLException {
		// TODO Auto-generated method stub
		return employeesGroupSerivce.getById(id);
	}

	/* (non-Javadoc)
	 * @see bussinessService.basicbussinessService#merageObject(java.lang.Object)
	 */
	public void merageObject(EmployeesGroup eg) throws SQLException {
		if (eg.getG_id() == 0) {
			employeesGroupSerivce.insertObject(eg);
		} else {
			employeesGroupSerivce.updateObject(eg);
		}
		
	}

	public int countByQueryObject(queryObject queryObject) {
		// TODO Auto-generated method stub
		return 0;
	}

	public List<EmployeesGroup> getObjectByQueryObject(queryObject queryObject) {
		// TODO Auto-generated method stub
		return null;
	}

}
